package com.hliushi.movie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hliushi.movie.entity.MovieActor;
import com.hliushi.movie.mapper.MovieActorMapper;
import com.hliushi.movie.service.MovieActorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MovieActorServiceImpl extends ServiceImpl<MovieActorMapper, MovieActor> implements MovieActorService {

    @Override
    public boolean insertActor(MovieActor movieActor) {
        log.info("insert a movieActor record: {}", movieActor);
        return super.save(movieActor);

    }

    @Override
    public boolean updateActor(MovieActor movieActor) {
        log.info("update a movieActor record: {}", movieActor);
        return super.updateById(movieActor);
    }
}
